package com.aliliwu.db_test.entities;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Employee {  
	
	@PrimaryKey    
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)   
	private Long id;   
	
	@Persistent
	private long age;
	
	@Persistent   
	private ContactInfo myContactInfo;    
	// ... accessors ...

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public ContactInfo getMyContactInfo() {
		return myContactInfo;
	}

	public void setMyContactInfo(ContactInfo myContactInfo) {
		this.myContactInfo = myContactInfo;
	}

	public long getAge() {
		return age;
	}

	public void setAge(long age) {
		this.age = age;
	}
	
}